package com.cloudsigns.factorymanager2.produce.adapter.produce_team;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.TextView;

import com.cloudsigns.factorymanager2.R;

public class ProduceTeamReceiveHandoverOrderAdapter extends BaseAdapter{
    private Context context;

    public ProduceTeamReceiveHandoverOrderAdapter(Context context){
        this.context=context;
    }

    //    public void setData(List<WorkPartOrderResponse> list) {
//        this.workPartOrderResponseList.clear();
//        if (null != list) {
//            this.workPartOrderResponseList.addAll(list);
//        }
//    }

    @Override
    public int getCount() {
        return 0;
    }

    @Override
    public Object getItem(int i) {
        return null;
    }

    @Override
    public long getItemId(int i) {
        return 0;
    }

    @Override
    public View getView(int position, View view, ViewGroup viewGroup) {
        ViewHolder holder=null;
        if (null==view){
            view= LayoutInflater.from(context).inflate(R.layout.item_produce_team_receive_handover_order,null);
            holder.tv_handover_time=view.findViewById(R.id.tv_handover_time);
            holder.img_arrow_down=view.findViewById(R.id.img_arrow_down);
            holder.tv_submit_num=view.findViewById(R.id.tv_submit_num);
            holder.tv_acceptance=view.findViewById(R.id.tv_acceptance);
            holder.tv_submit_person=view.findViewById(R.id.tv_submit_person);
            holder.tv_qualified_num=view.findViewById(R.id.tv_qualified_num);
            holder.tv_back_num=view.findViewById(R.id.tv_back_num);
            holder.tv_back_reason=view.findViewById(R.id.tv_back_reason);
            holder.gridView=view.findViewById(R.id.gridView);

            view.setTag(holder);
        }else{
            holder= (ViewHolder) view.getTag();
        }
        return view;
    }

    static class ViewHolder{
        TextView tv_handover_time,tv_submit_num,tv_acceptance,tv_submit_person,tv_qualified_num,tv_back_num,tv_back_reason;
        ImageView img_arrow_down;
        GridView gridView;
    }
}
